//	CP2013 Traffic Simulator Assignment
//      Traffic Model Lane
//	Java version
//      Coded by Matthew Johnson


package traffic;

//A Lane represents a single lane on a Road
public class Lane
{
    //Default Lane length
    public static final int DEFAULT_LENGTH = 10;
    //The lanes top left coordinate
    public Coordinate anchor;
    //The point that cars enter the lane
    public Coordinate spawnPoint;
    //The lane's direction
    public Direction direction;
    //Where this lane joins the intersection
    public Coordinate intersectionEntryPoint;
    //The lane's length
    public int length;
    //the probability of a car entering the lane
    public int probability;

    //Constructor: Sets up a new Lane instance
    Lane(int len, Direction dir, int prob) {
        length = len;
        direction = dir;
        probability = prob;
    }
}
